[Javascript] Retrieve a URL of a frame
Posted
by Ricky
on Stack Overflow
See other posts from Stack Overflow
or by Ricky
Published on 2010-05-24T11:28:41Z
Indexed on
2010/05/24
11:31 UTC
Read the original article
Hit count: 135
JavaScript
Hi, guys:
If I get a link
<a href="/Users/ChangePassword.aspx" target="mainFrame">
in fraTopMenu, what
(1) javascript can I add to get the current mainFrame's URL upon clicking the link and
(2) append the URL to the querystrings?
<frameset rows="60,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="/Common/Manager/TopMenu.aspx" name="fraTopMenu" scrolling="no" noresize="noresize" id="fraTopMenu" title="" />
<frameset rows="*" cols="185,*" framespacing="0" frameborder="no" border="0">
<frame src="..." name="leftFrame" id="leftFrame" title="" />
<frame src="..." name="mainFrame" id="mainFrame" title="" />
</frameset>
</frameset>
Thank you.
© Stack Overflow or respective owner